package com.yj.lottery_system.service;

import com.yj.lottery_system.controller.param.CreatePrizeParam;
import com.yj.lottery_system.controller.param.PageParam;
import com.yj.lottery_system.service.dto.PageListDTO;
import com.yj.lottery_system.service.dto.PrizeDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface IPrizeService {
    /**
     * 创建一个奖品
     * @param param 奖品属性
     * @param file 奖品图
     * @return 奖品id
     */
    Long createPrize(CreatePrizeParam param, MultipartFile file);
    /**
     * 翻页查询列表
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPrizeList(PageParam param);
}
